package com.message.resp;

import com.constant.MessageType;
import com.message.DefaultMessage;
import lombok.Data;

@Data
public class GroupChatResp extends DefaultMessage {

    /**
     * 群聊消息，由谁发送
     */
    private String fromUserName;

    /**
     * 群聊消息的内容
     * */
    private String content;

    /**
     * 是哪一个群聊组的消息
     */
    private String groupName;

    @Override
    public int getMessageType() {
        return MessageType.GROUP_CHAT_RESPONSE;
    }

    public GroupChatResp() {
    }

    public GroupChatResp(String fromUserName, String content,String groupName) {
        this.fromUserName = fromUserName;
        this.content = content;
        this.groupName=groupName;
    }
}
